<%--
*
*췄甘： 表BASIC_ORGANIZATION的edit文件
*
* @author tch 
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="f" uri="/flowpage-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title><s:property value="operate"/>组织</title>
	<%@include file="/share/header.jsp"%>
	<s:head/>
	<f:header theme="${sessionScope.skinCon.pageSkin}"/>	
  </head>
  <body>
  <s:actionerror/>
	    <s:form  action="save" namespace="/basic/organization" validate="true" focusElement="domain.name">
		 	<s:hidden name="domain.parent.id"/>
		 	<s:if test="readonly">
		    	<s:textfield name="domain.parent.name" label="上级组织" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}"  dataType="LimitB"  max="100"    maxlength="100"/>		 	
		 	</s:if>
		 	<s:else>
		    	<s:textfield name="domain.parent.name" label="上级组织" multipleheight="1" multiplewidth="1" required="false" readonly="true" dataType="LimitB"   max="100"   maxlength="100" onclick="onDoSelectTree({title:'上级组织',type:'Organization',rootIds:'%{currentOrganization.id}',excludeIds:'%{domain.id}',returnIdName:'domain.parent.id',returnTextName:'domain.parent.name'});" cssClass="SelectTree"/>		 	
		 	</s:else>
		    <s:textfield name="domain.name" label="名称" multipleheight="1" multiplewidth="1" required="true" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"   max="50"   maxlength="50"/>
	      <s:if test="getConfigValue('enable_multiple_type')==\"1\"">
			<s:checkboxlist name="domain.proxyTypes" label="单位类型"  readonly="%{readonly}" disabled="%{disabled}" required="true" dataType="Group" list="getCodeItemList('organization_type')" listKey="value" listValue="name" min="1"/>	      
	      </s:if>
	      <s:else>		    
		    <s:select name="domain.proxyType" label="单位类型" multipleheight="1" multiplewidth="1" required="true" readonly="%{readonly}" disabled="%{disabled}" emptyOption="true"  list="getCodeItemList('organization_type')" listKey="value" listValue="name"/>
	      </s:else>			    
		    <s:textfield name="domain.organizationCode" label="组织机构代码" multipleheight="1" multiplewidth="1" required="true" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB" min="9" max="9" maxlength="9" msg="组织机构代码必须为9位数字"/>
		    <s:textfield name="domain.address" label="地址"  required="false" multipleheight="1" multiplewidth="1" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"    max="100"   maxlength="100"/>
		    <s:textfield name="domain.telphone" label="电话" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Phone"  maxlength="50"/>
		    <s:textfield name="domain.postNumber" label="邮编" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Zip"  maxlength="50"/>
		    <s:textfield name="domain.fax" label="传真" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Phone"  min='10'  maxlength="50"/>
		    <s:textfield name="domain.sequence" label="顺序" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Integer"  maxlength="4"/>
		    <s:radio name="domain.state" label="是否使用" noborder="true" readonly="%{readonly}" disabled="%{disabled}"  required="true" list="getCodeItemList('yes_no')" listKey="value" listValue="name" />		    
			<s:textarea name="domain.remark" label="备注"  required="false" multipleheight="2" multiplewidth="2" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"   max="2000"   maxlength="2000"/>		    
		    <f:fieldset title="法人信息：">
			    <s:textfield name="domain.corporationName" label="法定代表人姓名" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"  max="50"  maxlength="50"/>
			    <s:radio name="domain.corporationSex"  label="法定代表人性别" noborder="true" readonly="%{readonly}" disabled="%{disabled}"  required="false" list="getCodeItemList('sex')" listKey="value" listValue="name"  min='10' />
			    <s:textfield name="domain.corporationBirthday" label="法定代表人出生日期" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Date"  maxlength="8">
				<s:param name="value">
			    	    <s:date name="domain.corporationBirthday" format="yyyy-MM-dd"/>
			    	</s:param>
			    </s:textfield>
			    <s:textfield name="domain.corporationEmail" label="法定代表人电子邮箱" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Email"  maxlength="50"/>
			    <s:textfield name="domain.corporationTel" label="法定代表人电话" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Phone"  maxlength="50"/>
			    <s:textfield name="domain.corporationMobile" label="法定代表人手机" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Mobile"  maxlength="50"/>
		    </f:fieldset>
		    <f:fieldset title="负责人信息：">
			    <s:textfield name="domain.principalName" label="负责人姓名" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"  max="50"  maxlength="50"/>
			    <s:radio name="domain.principalSex" label="负责人性别" noborder="true"  readonly="%{readonly}" disabled="%{disabled}" required="false" list="getCodeItemList('sex')" listKey="value" listValue="name"  min='10'/>
			    <s:textfield name="domain.principalBirthday" label="负责人出生日期" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Date"  maxlength="8">
				<s:param name="value">
			    	    <s:date name="domain.principalBirthday" format="yyyy-MM-dd"/>
			    	</s:param>
			    </s:textfield>
			    <s:textfield name="domain.principalEmail" label="负责人电子邮箱" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Email"  maxlength="50"/>
			    <s:textfield name="domain.principalTelphone" label="负责人电话" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Phone"  maxlength="50"/>
			    <s:textfield name="domain.principalMobile" label="负责人手机" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Mobile"  maxlength="50"/>
		    </f:fieldset>
	    </s:form>
  </body>
</html>
